package com.hbue.springboot.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

/**
 * 功能：
 * 日期：2025/1/12 15:31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbHistory {
    @TableId
    private Integer id;
    private Integer custId;
    private Integer workerId;
    private Date sendWaterTime;
    private Integer sendWaterCount;
    private Date gmtCreate;
    private Date gmtModified;
    private Long version;
    @TableLogic
    private Integer deleted;

    public TbHistory(Integer customerId, Integer count) {
        this.custId = customerId;
        this.sendWaterCount = count;
    }

    public TbHistory(Integer customerId, Integer count, Long version) {
        this.custId = customerId;
        this.sendWaterCount = count;
        this.version = version;
    }
    public TbHistory(Integer customerId, Integer count, Integer workerId, Long version) {
        this.custId = customerId;
        this.sendWaterCount = count;
        this.workerId = workerId;
        this.version = version;
    }
}
